
package com.market.web.action;

import com.market.bean.Supplier;

public class AdminSupDelAction extends BaseAction2
{
    public String execute() throws Exception
    {
        long id = getLong("id");
        Supplier sup = getSupplierService().findById(id);
        if (sup != null)
        {
            try
            {
                getSupplierService().delete(sup);
            }
            catch (Exception e)
            {
                logger.error("",e);
            }
        }
        return SUCCESS;//new ActionForward("/adminSupList.do");
    }
}
